<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */


class CronModel extends Model
{

	//缓存计划任务
    public function cacheCronJobs()
    {
        $results = $jobs = array();
        $map = array('status' => 1);
        $jobs = $this->where($map)->select();
        if (!empty($jobs))
        {
        	foreach ($jobs as $value)
        	{
        		$results[$value['cron_id']] = $value;
        	}
        	F('cache_cron_jobs', $results);
        }
    }

}

/* End of file CensorWordModel.class.php */
/* Location: ./App/Lib/Model/CensorWordModel.class.php */
